<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <!-- 下载完成并执行 -->
    <!-- <script src="./js/main.js" async="async"></script>  -->
    <!-- 异步下载最后执行 -->
    <script src="./js/main.js" defer="defer"></script>
</head>
<body>
    <script>
        alert("start")    
    </script>
    <div>hello world</div>
    <script>
        alert("end")    
    </script>

    <script>
        alert("start")    
    </script>
    <div>hello world</div>
    <script>
        alert("end")    
    </script>
</body>
</html>
